﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Micrhard.FMCG.Server.Validator;

namespace Micrhard.FMCG.Server.Models
{
     [FluentValidation.Attributes.Validator(typeof(IspItemModelValidator))]
    public class IspItemModel : BasePermissionModel
    {
        [ModelPKID]
        public Guid CheckListItemID { set; get; }
        public string Name { set; get; }
        public DateTime CreateTime { set; get; }
        public Guid CategoryID { set; get; }
        public int Sort { set; get; }
        public Guid Type { set; get; }

        public string CategoryName { set; get; }
        public Guid TemplateID { set; get; }
        public string  TemplateName { set; get; }

  [ModelReadTxtFromoCache(IDFieldName = "Type")]
        public string TypeToDisplay { set; get; }
    }
}
